home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / win / ch19 / colsmth.wrl < prev   
Text File  |  1996-09-23  |  1KB  |  54 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.         Shape {
  8.             appearance Appearance {
  9.                 material Material { }
  10.             }
  11.             geometry IndexedFaceSet {
  12.                 coord Coordinate {
  13.                     point [
  14.                         -2.00  3.00 0.00,
  15.                         -2.00 -3.00 0.00,
  16.                         -1.41  3.00 1.41,
  17.                         -1.41 -3.00 1.41,
  18.                          0.00  3.00 2.00,
  19.                          0.00 -3.00 2.00,
  20.                          1.41  3.00 1.41,
  21.                          1.41 -3.00 1.41,
  22.                          2.00  3.00 0.00,
  23.                          2.00 -3.00 0.00,
  24.                     ]
  25.                 }
  26.                 coordIndex [
  27.                     0, 1, 3, 2,   -1,
  28.                     2, 3, 5, 4,   -1,
  29.                     4, 5, 7, 6,   -1,
  30.                     6, 7, 9, 8,   -1,
  31.                 ]
  32.                 normalPerVertex TRUE
  33.                 normal Normal {
  34.                     vector [
  35.                         -1.00 0.00 0.00,
  36.                         -0.71 0.00 0.71,
  37.                          0.00 0.00 1.00,
  38.                          0.71 0.00 0.71,
  39.                          1.00 0.00 0.00,
  40.                     ]
  41.                 }
  42.                 normalIndex [
  43.                     0, 0, 1, 1,   -1,
  44.                     1, 1, 2, 2,   -1,
  45.                     2, 2, 3, 3,   -1,
  46.                     3, 3, 4, 4,   -1,
  47.                 ]
  48.  
  49.             }
  50.         }
  51.     ]
  52. }
  53.  
  54.